﻿using System;

namespace ConsoleApp1
{
    class A
    {
        public static int X = 2;
        static A()
        {
            X = B.Y + 1;
        }
    }

    class B
    {
        //static B()
        //{

        //}

        public static int Y = A.X + 1;

        static void Main(string[] args)
        {
            Console.WriteLine($"{A.X},{B.Y}");

            Console.Read();
        }
    }
}
